package com.allenkerr.enums;

/**
 * Created by 小柯 on 17/6/19.
 */
public enum ResultEnum {
    SUCCESS(200, "Ok"),
    FAIL(500, "Not Ok"),
    DELETE_SUCCESS(201, "Delete Ok"),
    DELETE_FAIL(501, "Delete Not Ok");

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
